package com.mentaleye.service;

import java.util.List;

import com.mentaleye.bean.DormitoryStudentBean;
import com.mentaleye.dal.model.DormitoryStudentExample;
import com.mentaleye.util.CommonPage;

public interface DormitoryStudentService {
		public DormitoryStudentBean getDorStudentByStuIdAndDor(Integer stuId,Integer dorId,Integer stayStatus);
		/**
		 * 
		 * @param dormitoryBean controller传bean对象
		 * @return  添加操作结果，成功为1，失败为0
		 */
		public boolean addDormitoryStudent(DormitoryStudentBean dormitoryStudentBean);
		/**
		 * 
		 * @param dormitoryBean controller传bean对象
		 * @return 修改操作结果，成功为1，失败为0
		 */
		public boolean editDormitoryStudent(DormitoryStudentBean dormitoryStudentBean);
		/**
		 * 
		 * @param dorId  传入宿舍id主键
		 * @return 删除操作结果，成功为1，失败为0
		 */
		public boolean removeDormitoryStudent(Integer stuId,Integer dorId);
		/**
		 * 
		 * @return 查询所有宿舍信息
		 */
		public List<DormitoryStudentBean> getAllDirmitoryStudent(DormitoryStudentExample example);
		
		public List<DormitoryStudentBean> getDormitoryRelateStudentById(Integer id);
		
		public int getStudentCountByDorId(Integer dorId);
		
		public boolean isExistRelate(Integer dorId,Integer stuId);
		
		public DormitoryStudentBean getDormitoryRelateStudentByStuId(Integer stuId);
		
		public boolean removeDormitoryStudentByStatus(Integer stuId, Integer status);
		/**
		 * 查询学生关联宿舍列表
		 * @param map
		 * @return
		 */
		public void getMap(CommonPage commonPage);
}
